package com.huazhen.itrip.biz.service.labeldic;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripLabelDic;
import com.huazhen.itrip.beans.vo.ItripLabelDicVO;
import com.huazhen.itrip.dao.labeldic.ItripLabelDicMapper;
@Service("ItripLabelDicService")
public class ItripLabelDicServiceImpl implements ItripLabelDicService {
	@Autowired
	private ItripLabelDicMapper itripLabelDicMapper;
	@Override
	public ItripLabelDic getItripLabelDicById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.getItripLabelDicById(id);
	}

	@Override
	public List<ItripLabelDic> getItripLabelDicListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.getItripLabelDicListByMap(param);
	}

	@Override
	public Integer getItripLabelDicCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.getItripLabelDicCountByMap(param);
	}

	@Override
	public Integer insertItripLabelDic(ItripLabelDic itripLabelDic) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.insertItripLabelDic(itripLabelDic);
	}

	@Override
	public Integer updateItripLabelDic(ItripLabelDic itripLabelDic) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.updateItripLabelDic(itripLabelDic);
	}

	@Override
	public Integer deleteItripLabelDicById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.deleteItripLabelDicById(id);
	}

	@Override
	public List<ItripLabelDicVO> getItripLabelDicByParentId(Long parentId) throws Exception {
		// TODO Auto-generated method stub
		return itripLabelDicMapper.getItripLabelDicByParentId(parentId);
	}

}
